﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Move.cs" company="">
//   
// </copyright>
//  <summary>
//   The move.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Shatranj
{
    using System;

    /// <summary>
    /// The move.
    /// </summary>
    public class Move
    {
        #region Public Properties

        /// <summary>
        /// Gets or sets the end time.
        /// </summary>
        public TimeSpan EndTime { get; set; }

        /// <summary>
        /// Gets or sets the from.
        /// </summary>
        public string From { get; set; }

        /// <summary>
        /// Gets the notation.
        /// </summary>
        public string Notation
        {
            get
            {
                return this.Piece.FigurineNotation + this.To;
            }
        }

        /// <summary>
        /// Gets or sets the piece.
        /// </summary>
        public ChessPiece Piece { get; set; }

        /// <summary>
        /// Gets or sets the start time.
        /// </summary>
        public TimeSpan StartTime { get; set; }

        /// <summary>
        /// Gets or sets the time taken.
        /// </summary>
        public int TimeTaken { get; set; }

        /// <summary>
        /// Gets or sets the to.
        /// </summary>
        public string To { get; set; }

        #endregion
    }
}